/**
 * @name 字符串处理工具
 * @author qianShang
 * @version 20230831
 */
export class StringHandleUtil{
    private static _Ins: StringHandleUtil;
    public static get Ins() {
        if (this._Ins == null) {
            this._Ins = new StringHandleUtil();
        }
        return this._Ins;
    }

    /**
     * 更换地址http为https
     * @param url 需要更改地址
     * @returns https地址
     */
    changeHttpToHttps(url:string){
        return url.replace("http", "https");
    }

    /**
     * 更换地址https为http
     * @param url 需要更改地址
     * @returns http地址
     */
    changeHttpsToHttp(url:string){
        return url.replace("https", "http");
    }
}